<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColCostToInvoiceRecordTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('invoice_record', function(Blueprint $table)
        {
            $table->string('product_name')->nullable()->comment('产品名称')->after('bank_account_num');
            $table->decimal('amount')->default(0)->comment('合计金额')->after('product_name');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
